<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<script language="JavaScript" src="${pageContext.request.contextPath}/js/jquery.timers-1.2.js"></script>
<script type="text/javascript">
<!--
$(function(){
	
	$('div[id="idleTime"]').everyTime(1000, function(i) {
		if(i == 20*60) window.location.href = "${pageContext.request.contextPath}/logout.do?isTimeOut=true";
		var min = ""+Math.floor(i/60);
		var sec = ""+i%60;
        $(this).html(((min.length == 1)?"0"+min:min)+":"+((sec.length == 1)?"0"+sec:sec));
    });
});
//-->
</script>
<!--dynamic hmenu Start-->
<div class="mlmenu menubg inaccesible arrow">
  <ul>
    <li>
    	<a href="${pageContext.request.contextPath}/noteit/InitNoteitAction.do">NoteIT</a>
    	
    </li> 
  </ul>

  <ul>
    <li>
    	<a href="${pageContext.request.contextPath}/noteit/WordsPoolAction.do">WORDs Pool</a>
    	
    </li> 
  </ul> 
 
  <ul>
    <li>
    	<a href="${pageContext.request.contextPath}/noteit/AboutUsAction.do">About</a>
    </li> 
  </ul> 

</div>
<a onFocus="mlout();" href="javascript:"></a>
<noscript>TAB標籤功能，如不執行不影響您資料瀏覽</noscript>
<!--dynamic hmenu End--> 
        <div class="infotb">
                <table cellspacing="0" summary="資料表格">
                        <tr>
                              
                            <td class="name">User</td>
                            <td class="value"><%=session.getAttribute("loggedInUser").toString()%></td>
                            
                            <td class="name">Login Time</td>
                            <td class="value"><div id="loginTime"><%=new Date()%></div></td>
                        </tr>
                        
                        <tr>    
                                                         
                             <td class="name">ID</td>
                             <td class="value"><%=session.getAttribute("loggedInUser").toString()%></td>
                             
                             <td class="name">Idle Time</td>
                             <td class="value"><div id="idleTime"></div></td>
                       </tr>
                        <tr>                                    
                             <td class="value" colspan="4"><a href="${pageContext.request.contextPath}/logout.do">Logout</a></td>
                       </tr>
                </table>
            </div>


